@import '../../constants';

.page {
  &-header {
    border-bottom: 1px solid $border-color;

    &__top {
      padding: 0 40px;
      overflow: hidden;
      position: relative;
      box-sizing: border-box;
      height: $top-nav-height;
      background-color: #fff;

      @media (min-width: 1440px) {
        width: 1440px;
        margin: 0 auto;
      }
    }

    &__logo {
      float: left;
      font-size: 0;
      line-height: 60px;

      span,
      img {
        display: inline-block;
        vertical-align: middle;
      }

      img {
        width: 24px;
        margin-right: 10px;
      }

      span {
        color: #333;
        font-size: 20px;
        font-family: Dosis, Source Sans Pro, Helvetica Neue, Arial, sans-serif;
      }
    }

    &__search-sep {
      display: inline-block;
      height: 20px;
      width: 1px;
      background: #bbb;
      margin-top: 20px;
      margin-left: 20px;
    }

    &__item {
      height: 100%;
    }

    &__link {
      display: block;
      line-height: $top-nav-height;
      color: #333;
      font-size: 16px;
      margin: 0 20px;

      &:hover {
        color: $link-color;
      }

      &--active {
        color: $link-color;
      }
    }

    &__right-fixed {
      position: absolute;
      right: 30px;
      top: 0;
      height: 60px;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    &__i18n-switcher {
      margin-right: 12px;
      color: #455a64;
      padding: 5px 7px;
      font-size: 14px;
      line-height: 20px;
      border-radius: 2px;
      cursor: pointer;
      text-align: center;
      display: inline-block;
      transition: 0.3s ease-in-out;
      border: 1px solid #e0e0e0;
      font-family: Helvetica Neue, Arial, sans-serif;

      &:hover {
        color: $link-color;
        border-color: $link-color;
      }
    }

    &__version-select.zent-select-v2 {
      margin-right: 12px;
    }
  }
}
